package com.holly.unit.bpmn.activiti.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.holly.unit.db.api.pojo.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 类描述: 流程节点扩展表
 *
 * @author fxr
 * @version 1.0.0
 * @date 2022/2/21 14:24
 */
@EqualsAndHashCode(callSuper = true)
@TableName("act_z_expression")
@Data
public class ActivitiExpression extends BaseEntity {

    /**id*/
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**节点id*/
    @TableField("node_id")
    private String nodeId;

    /**关联其他表id(流程模型Id)*/
    @TableField("model_id")
    private String modelId;

    /**判断规则 "==",">=","<=",">","<"'*/
    @TableField("rule")
    private String rule;

    /**条件值*/
    @TableField("field_val")
    private String fieldVal;

    /**字段名称*/
    @TableField("field_name")
    private String fieldName;

    /**el表达式 运算符 &&=并且，||=或*/
    @TableField("el_operator")
    private String elOperator;

    /**同一节点条件排序*/
    @TableField("sort")
    private Integer sort;

}
